package com.nf.xiaomi.service;

import com.nf.mvc.file.MultipartFile;
import com.nf.xiaomi.entity.ProductEntity;

import java.math.BigInteger;
import java.util.List;

public interface ProductService {
    List<ProductEntity> typeAll(String typeName);

    List<ProductEntity> getAll();

    List<ProductEntity> getAll(String name);

    BigInteger insert(ProductEntity entity, MultipartFile[] files);

    Integer update(ProductEntity entity);

    Integer deleteById(Integer id);

    Integer setProductAmount(Integer productID,Integer amount);

}
